﻿using Eldn.Wpf.Login.Views;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;

namespace Eldn.Wpf.Login
{
    public class LoginModule : IModule
    {
        private readonly IRegionViewRegistry _regionViewRegistry;

        public LoginModule(IRegionViewRegistry regionViewRegistry)
        {
            _regionViewRegistry = regionViewRegistry;
        }

        public void Initialize()
        {
            _regionViewRegistry.RegisterViewWithRegion("AccountView", typeof(AccountView));
        }
    }
}
